package com.kcht.sylyg08.service;

import com.kcht.adp.common.log.Logger;
import com.kcht.adp.pagination.Page;
import com.kcht.sylyg08.ctrl.vo.ContainerStatusRecordVO;
import com.kcht.sylyg08.ctrl.vo.ContainerStatusTransformRecordVO;
import com.kcht.sylyg08.dao.IContainerHistoricalStatusDao;
import com.kcht.sylyg08.dao.IContainerStatusTransformRecordDao;
import com.kcth.sylyg08.entity.ContainerHistoricalStatus;
import com.kcth.sylyg08.entity.ContainerStatusTransformRecord;

import javax.ejb.EJB;
import javax.enterprise.context.RequestScoped;
import javax.inject.Inject;
import javax.transaction.Transactional;
import java.util.List;
import java.util.Objects;

@RequestScoped
@Transactional()
public class ContainerStatusRecordService {
    @Inject
    private Logger logger;
    @EJB
    private IContainerHistoricalStatusDao dao;

    public Page<ContainerHistoricalStatus, ContainerStatusRecordVO> list(Page<ContainerHistoricalStatus, ContainerStatusRecordVO> page) {

        return dao.getPageListByJPQL("ContainerStatusRecord.queryRecordList", page);
    }
}
